package org.rpgmapper.mock;

import java.util.ArrayList;
import java.util.List;

import org.rpgmapper.bo.Bonus;
import org.rpgmapper.bo.BonusType;
import org.rpgmapper.bo.Character;
import org.rpgmapper.database.RPGMapperOpenHelper;

import android.content.Context;


public class Mock {

	public static void addCharacters(Context context, RPGMapperOpenHelper helper) {
        helper.insertHero("Ayria", 0);
        Character c = helper.getCharacterById(1);
        c.setSide(4);
        helper.updateCharacter(c);
        List<Bonus> bonus = new ArrayList<Bonus>();
        bonus.add(new Bonus(5, "+10 BBA", BonusType.CHARACTER));
        bonus.add(new Bonus(5, "+1 CA", BonusType.CHARACTER));
        c.setBonus(bonus);
        helper.insertHero("Calkin", 0);
        c = helper.getCharacterById(2);
        c.setSide(1);
        helper.updateCharacter(c);
        helper.insertHero("Foa", 0);
        c = helper.getCharacterById(3);
        c.setSide(2);
        helper.updateCharacter(c);
        helper.insertHero("Keemun", 0);
        c = helper.getCharacterById(4);
        c.setSide(1);
        helper.updateCharacter(c);

	}

	public static void addMonsters(Context context, RPGMapperOpenHelper helper) {
        helper.insertMonster("Elfe méchant");
        helper.insertMonster("Mouche bébé");
        helper.insertMonster("Troll dégueu");
        helper.insertMonster("Gobelin");
        helper.insertMonster("Géant");
        helper.insertMonster("Dieu quelconque");
        helper.insertMonster("Pixie");
        helper.insertMonster("Demi-orque véner");
        helper.insertMonster("Bandit lambda");
	}
}
